package com.gordon.tips.service;

import java.util.List;

import com.gordon.tips.domain.Item;
import com.gordon.tips.domain.ItemTheme;
import com.gordon.tips.domain.ItemType;



/**
 * game service layer
 * @author Gordon Hwang
 * 2011.12.15 14:35
 */
public interface GameService 
{
	/**
	 * list items
	 * @param start
	 * @param size
	 * @return
	 */
	public List<Item>listItems(int start,int size);

	/**
	 * save item
	 * @param item
	 */
	public void saveItem(Item item);

	/**
	 * @param id
	 */
	public void delItem(int id);

	/**
	 * get item by id
	 * @param id
	 * @return
	 */
	public Item getItemById(int id);

	/**
	 * update one item
	 * @param item
	 * @param id
	 */
	public void updateItem(Item item, int id);

	/**
	 * @return
	 */
	public List<ItemType> listItemTypes();

	/**
	 * @return
	 */
	public List<ItemTheme> listItemThemes();

	/**
	 * add new item type
	 * @param name
	 * @return
	 */
	public int  addItemType(String name);

	public int addItemTheme(String name);

}
